/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package sdk.weinxin.beans.kfmessage;

import com.fasterxml.jackson.annotation.JsonTypeName;
import sdk.weinxin.beans.message.Media;

/**
 *
 * @author 张森
 */
@JsonTypeName(value = VoiceKfMessage.TYPE)
public class VoiceKfMessage extends KfMessage {
    
    public static final String TYPE = "voice";
    
    public VoiceKfMessage(){
        this.setMsgtype(TYPE);
    }
    
    public VoiceKfMessage(String touser, String mediaId) {
        super(touser, TYPE);
        this.voice = new Media(mediaId);
    }

    public Media voice;

    public Media getVoice() {
        return voice;
    }

    public void setVoice(Media voice) {
        this.voice = voice;
    }

}
